﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.master" AutoEventWireup="true" Inherits="Staff_EditStaffInfo" Codebehind="~/Staff/EditStaffInfo.aspx.cs" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1"%>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td align="left"><span class="heading">Edit Staff Information</span></td>
            <td style="height:30px;" align="right">
                <%--<asp:ImageButton ID="ibtnAdd" CausesValidation="false" runat="server" Visible="false"
                    ImageUrl="~/App_Themes/main/images/add.png" OnClick="ibtnAdd_Click" />--%>
            </td>
        </tr>
    </table>
   <div class="addstudent_container">
   <table cellpadding="0" cellspacing="0" border="0" width="100%">
      <tr>
        <td class="viewformtab_top">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
         <td class="viewformtab_content" align="right">
         
         <div style="z-index:999; width:210px;" align="right">
            <asp:TreeView ID="tvCategories" ExpandDepth="0" runat="server" ShowLines="false" 
                LineImagesFolder="~/TreeLineImages" 
                onselectednodechanged="tvCategories_SelectedNodeChanged">
               <RootNodeStyle CssClass="" />
               <LeafNodeStyle CssClass="viewformtab_leaf" />
               <ParentNodeStyle CssClass="" />
               <HoverNodeStyle CssClass="viewformtab" />
               <SelectedNodeStyle CssClass="viewformtab_select" />
               <NodeStyle CssClass="" />
           </asp:TreeView></div>
           <asp:HiddenField ID="hdnCatId" runat="server" />
            
         </td>
          <td style="padding:10px;" valign="top" class="addstudent_content">
                <table width="100%" cellpadding="0" cellspacing="0" >
                    <tr>
                        <td align="left" valign="top">
                          <asp:Label ID="lblCatName" runat="server"></asp:Label>
                          <asp:MultiView ID="mvCategories" runat="server" ActiveViewIndex="0">
                          <asp:View ID="ViewDemoGraphic" runat="server">
                             <table>
                             
                             <tr>
                             
                             <td>
                                 <table>
                                 
                                 <tr>
                                    <td><asp:Literal ID="ML_0044" runat="server" meta:resourcekey="ML_0044">Staff ID</asp:Literal>
                                    </td>
                                    <td> <asp:TextBox ID="txtStaffId" runat="server"></asp:TextBox> 
                                    
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator25" runat="server" ControlToValidate="txtStaffId" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"  ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator25"></asp:RequiredFieldValidator> 
                                     </td>
                                     
                                      <td><asp:Literal ID="ML_0047" runat="server" meta:resourcekey="ML_0047">Alternate ID</asp:Literal>
                                    </td>
                                    <td> <asp:TextBox ID="txtAltrntId" runat="server"></asp:TextBox> 
                                    
                                   
                                     </td>
                                 
                                 </tr>
                                 
                                 <tr>
                                   <td><asp:Literal ID="ML_0049" runat="server" meta:resourcekey="ML_0049">Salutation</asp:Literal>
                                    </td>
                                    <td> <asp:DropDownList ID="ddlSalutation" runat="server" CssClass="dropdown"></asp:DropDownList>
                                    
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator27" runat="server" ControlToValidate="ddlSalutation" Display="Dynamic" InitialValue="0" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>"  ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator27"></asp:RequiredFieldValidator> 
                                     </td>
                                     
                                      <td><asp:Literal ID="ML_0052" runat="server" meta:resourcekey="ML_0052">First Name</asp:Literal>
                                    </td>
                                    <td> <asp:TextBox ID="txtStaFrstNam" runat="server"></asp:TextBox>                   <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="txtStaFrstNam" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"  ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator13"></asp:RequiredFieldValidator> 
                                     </td>
                                     
                                 </tr>
                                 <tr>
                                 
                                 <td><asp:Literal ID="ML_0055" runat="server" meta:resourcekey="ML_0055">Middle Name</asp:Literal>                                            
                                   </td>
                                   <td><asp:TextBox ID="txtStaMidlNam" runat="server"></asp:TextBox>                        
                                   </td>
                                   <td><asp:Literal ID="ML_0057" runat="server" meta:resourcekey="ML_0057">Last Name</asp:Literal>                                             
                                   </td>
                                   <td><asp:TextBox ID="txtStalstNam" runat="server"></asp:TextBox>   
                                   
                                                         <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="txtStalstNam" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator14"></asp:RequiredFieldValidator> 
                                   </td>
                                     
                                 </tr>
                                 <tr>
                                 
                                 
                                 <td><asp:Literal ID="ML_0060" runat="server" meta:resourcekey="ML_0060">Suffix</asp:Literal>                                                         
                                   </td>
                                   <td>  
                                   <asp:DropDownList ID="ddlSuffix" runat="server" CssClass="dropdown"></asp:DropDownList>
                                    
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator26" runat="server" ControlToValidate="ddlSuffix" Display="Dynamic" InitialValue="0" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>"  ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator26"></asp:RequiredFieldValidator>                
                                   </td>
                                 <td><asp:Literal ID="ML_0063" runat="server" meta:resourcekey="ML_0063">Gender</asp:Literal>                                            
                                   </td>
                                   <td><asp:DropDownList ID="ddlGender" runat="server" CssClass="dropdown"></asp:DropDownList><asp:RequiredFieldValidator ID="RequiredFieldValidator28" runat="server" ControlToValidate="ddlGender" Display="Dynamic" InitialValue="0" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>"  ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator28"></asp:RequiredFieldValidator>  
                                   </td>
                                 </tr>
                                   
                                   
                                   <tr>
                                   
                                   
                                 <td><asp:Literal ID="ML_0066" runat="server" meta:resourcekey="ML_0066">Date of Birth</asp:Literal>                     
                                   </td>
                                   <td><asp:TextBox ID="txtDOB" runat="server"></asp:TextBox> 
                                   
                                    <asp:ImageButton ID="calImg1" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Date Of Birth" runat="server" meta:resourcekey="calImg1"/>
                                   <cc1:CalendarExtender ID="CalDobDate" runat="server" PopupButtonID="calImg1" TargetControlID="txtDOB"  ></cc1:CalendarExtender>
                                   
                                   <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="txtDOB" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator16"></asp:RequiredFieldValidator>
                                                    
                                   </td>
                                  <td><asp:Literal ID="ML_0071" runat="server" meta:resourcekey="ML_0071">Ethnicity</asp:Literal>                       
                                   </td>
                                   <td><asp:DropDownList ID="ddlEthnicity" runat="server" CssClass="dropdown"></asp:DropDownList>                 
                                   <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="ddlEthnicity" Display="Dynamic" InitialValue="0"  ErrorMessage="<div align='center' class='alert'>Please select Ethnicity</div>" ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator10"></asp:RequiredFieldValidator>  
                                   </td>
                                   </tr>
                                   
                                  
                                   
                                   <tr>
                                    <td><asp:Literal ID="ML_0074" runat="server" meta:resourcekey="ML_0074">Primary Language</asp:Literal>                                            
                                   </td>
                                   <td><asp:DropDownList ID="ddlLang" runat="server" CssClass="dropdown"></asp:DropDownList>                    <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="ddlLang" Display="Dynamic" InitialValue="0"  ErrorMessage="<div align='center' class='alert'>Please select a language</div>" ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator17"></asp:RequiredFieldValidator>    
                                   </td>
                                   <td><asp:Literal ID="ML_0077" runat="server" meta:resourcekey="ML_0077">Secondary Language</asp:Literal>                                           
                                   </td>
                                   <td><asp:DropDownList ID="ddlSecnLang" runat="server" CssClass="dropdown"></asp:DropDownList>  
                                   </td>
                                 
                                   </tr>
                                 <tr>
                                   <td><asp:Literal ID="ML_0079" runat="server" meta:resourcekey="ML_0079">Third Language</asp:Literal>                                             
                                   </td>
                                   <td><asp:DropDownList ID="ddlThrdLang" runat="server" CssClass="dropdown"></asp:DropDownList>                         
                                   </td>
                                     <td><asp:Literal ID="ML_0081" runat="server" meta:resourcekey="ML_0081">Disability</asp:Literal>                                             
                                   </td>
                                   <td>
                                     <asp:RadioButtonList ID="rbtnDisability" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="rbtnDisability_SelectedIndexChanged" AutoPostBack="true">
                                      <asp:ListItem OnClick="RadioButtonFuncdisability(this);" Value="Y" meta:resourcekey="ML_0083">Yes</asp:ListItem>
                                      <asp:ListItem OnClick="RadioButtonFuncdisability(this);" Value="N" meta:resourcekey="ML_0084">No</asp:ListItem>
                                     
                                     </asp:RadioButtonList> 
                                       <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" ControlToValidate="rbtnDisability" Display="Dynamic"   ErrorMessage="<div align='center' class='alert'>Please select one option</div>" ValidationGroup="vgDemoInfo"></asp:RequiredFieldValidator> 
                                   </td>
                                 
                                 </tr>
                                 <tr>
                                 <td colspan="2">
                                 <asp:Panel ID="pnlDisability" runat="server" >
                                  <div id="divDisability" > <table><tr>
                                
                                <td> <asp:Literal ID="ML_0087" runat="server" meta:resourcekey="ML_0087">Disability Description</asp:Literal>                                            
                                   </td>
                                   <td>
                                      <asp:TextBox ID="txtDisDesc" runat="server" TextMode="MultiLine"></asp:TextBox>    
                                   </td>
                                 
                                </tr></table></div> 
                                </asp:Panel>
                                </td>
                                 
                                 </tr>
                                 
                                                                   
                                 
                                 </table>
                                 
                                <%-- <td>Disability                                             
                                   </td>
                                   <td>
                                      <asp:TextBox ID="txtDisDesc" runat="server" TextMode="MultiLine"></asp:TextBox>    
                                   </td>--%>
                                   
                                   
                                 
                             </td>
                             
                             <td align="center" valign="top" style="padding-top:30px;">
                            <div style="background-image:url(../App_Themes/main/images/bevel_horline.png); background-repeat:repeat-x; background-position:left top; padding-top:10px; padding-left:5px;">
                            <div class="img_placeholder" id="divOuter" runat="server">
                                <div class="img_padding2" id="divPhotoUpload" runat="server" onmouseover="ShowHyperlink();"
                                    onmouseout="HideHyperlink();" style="background-image: url('../App_Themes/main/images/no_pic.png');
                                    background-repeat: no-repeat; background-position: center; width:125px; height:125px;">
                                    <%--  <img name="" src="../App_Themes/main/images/no_pic.png" id="imgStudentPhoto" runat="server" width="107" height="115"/>--%>
                                    <a href='PhotoUpload.aspx' rel="lyteframe" style="cursor: pointer;" target="_blank"
                                        rev="width: 620px; height: 510px; scrolling: no; border:0px; margin:0px; top:0px;">
                                        <div style="text-align: center; background-color: #fff; height: 15px; padding: 8px 3px 8px 3px;
                                            display: none; filter: alpha(opacity=70);" id="divLabel" runat="server">
                                            <asp:Label ID="lblUploadPhoto" CssClass="darkblue" runat="server" Text="Change Photo"
                                                Style="z-index: 99999;" meta:resourcekey="lblUploadPhoto"></asp:Label>
                                        </div>
                                    </a>
                                </div>
                            </div>
                            </div>
                        </td>
                             
                             
                             </tr>
                             
                             
                             
                             
                             
                             
                             
                             
                             
                             </table>
                          
                          </asp:View>
                          
                              <asp:View ID="ViewAddContact" runat="server">
                                  <table>
                                      <tr>
                                          <td>
                                              <table>
                                                  <tr>
                                                      <td>
                                                           <table>
                                                                <tr>
                                                                   <td>
                                                                      <asp:Literal ID="ML_0091" runat="server" meta:resourcekey="ML_0091">Home address</asp:Literal>
                                                                   </td>                           
                                                                   
                                                                </tr>
                                                                <tr>
                                                                     
                                                                
                                                                    
                                                                    
                                                                    <td>
                                                                    <table>
                                                                       <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0092" runat="server" meta:resourcekey="ML_0092">Street address 1</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtAdd1" runat="server"></asp:TextBox>  
                                   
                                   
                                   <asp:RequiredFieldValidator ID="rfvPriAdd1" runat="server" ControlToValidate="txtAdd1" Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left Blank</div>" ValidationGroup="vgAddrInfo" meta:resourcekey="rfvPriAdd1"></asp:RequiredFieldValidator>
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                       <tr>
                                                                         <td>
                                                                         <asp:Literal ID="ML_0095" runat="server" meta:resourcekey="ML_0095">Street address 2</asp:Literal>

                                                                         </td>
                                                                         <td><asp:TextBox ID="txtAdd2" runat="server" meta:resourcekey="txtAdd2"></asp:TextBox></td>
                                                                       </tr>
                                                                        <tr>
                                                                         <td>
                                                                         <asp:Literal ID="ML_0097" runat="server" meta:resourcekey="ML_0097">City</asp:Literal>

                                                                         </td>
                                                                         <td><asp:TextBox ID="txtCity" runat="server"></asp:TextBox>  
                                    
                                   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCity" Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left Blank</div>" ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator1"></asp:RequiredFieldValidator>  </td>
                                                                       </tr>
                                                                        <tr>
                                                                         <td>
                                                                         <asp:Literal ID="ML_0100" runat="server" meta:resourcekey="ML_0100">State</asp:Literal>

                                                                         </td>
                                                                         <td><asp:DropDownList ID="ddlState" runat="server" CssClass="dropdown"></asp:DropDownList>
              
                                   <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlState" Display="Dynamic" InitialValue="0" ErrorMessage="<div align='center' class='alert'>Please Select a state</div>" ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator2"></asp:RequiredFieldValidator>  </td>
                                                                       </tr>
                                                                        <tr>
                                                                         <td>
                                                                         <asp:Literal ID="ML_0103" runat="server" meta:resourcekey="ML_0103">Zip/Postal Code</asp:Literal>
                                                                         </td>
                                                                         <td>
                                                                         <asp:TextBox ID="txtZip" runat="server" MaxLength="10"></asp:TextBox>
                                   <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtZip" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator3"></asp:RequiredFieldValidator>  
                                   
                                   <asp:RegularExpressionValidator ID="regexZipHome" runat="server" ControlToValidate="txtZip" ValidationGroup="vgAddrInfo" ValidationExpression="^[0-9]+$" ErrorMessage="<div align='center' class='alert'>Please enter valid Zip Code</div>" meta:resourcekey="regexZipHome"></asp:RegularExpressionValidator>
                                   
                       </td>
                                                                       </tr>
                                                                       
                                                                       
                                                                    </table>
                                                                    </td>
                                                                    
                                                                </tr>
                                                           </table>
                                                      </td>
                                                      <td>
                                                           <table>
                                                                <tr>
                                                                   <td>
                                                                      <asp:Literal ID="ML_0107" runat="server" meta:resourcekey="ML_0107">Mailing address</asp:Literal>
                                                                   </td>                           
                                                                   
                                                                </tr>
                                                              <tr>
                                                                     
                                                                
                                                                    
                                                                    
                                                                    <td>
                                                                    <table>
                                                                     <tr>
                                                                         
                                                                         <td><asp:CheckBox ID="chkSame" runat="server"/> <asp:Literal ID="ML_0301" runat="server" meta:resourcekey="ML_0301">Same as Home Address</asp:Literal> </td>
                                                                       </tr>
                                                                       <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0302" runat="server" meta:resourcekey="ML_0302">P.O Box</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtPObox" runat="server"></asp:TextBox>
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                       <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0304" runat="server" meta:resourcekey="ML_0304">Street Address 1</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                       <asp:TextBox ID="txtSecnAdd1" runat="server"></asp:TextBox>
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                       <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0306" runat="server" meta:resourcekey="ML_0306">Street Address 2</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtSecnAdd2" runat="server"></asp:TextBox>
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                       <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0308" runat="server" meta:resourcekey="ML_0308">City</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtSecnCity" runat="server"></asp:TextBox>
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                       <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0310" runat="server" meta:resourcekey="ML_0310">State</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                        <asp:DropDownList ID="ddlSecnState" runat="server" CssClass="dropdown"></asp:DropDownList>
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                       <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0312" runat="server" meta:resourcekey="ML_0312">Zip/Postal Code</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtSecnZip" runat="server" MaxLength="10"></asp:TextBox>
                               <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtSecnZip" ValidationGroup="vgAddrInfo" ValidationExpression="^[0-9]+$" ErrorMessage="<div align='center' class='alert'>Please enter valid Zip Code</div>" meta:resourcekey="RegularExpressionValidator1"></asp:RegularExpressionValidator>
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                    </table>
                                                                    </td>
                                                                    
                                                                </tr>
                                                           </table>
                                                      </td>
                                                  </tr>
                                              </table>
                                          </td>
                                      </tr>
                                      <tr>
                                          <td>
                                              <table>
                                                  <tr>
                                                      <td>
                                                           <table>
                                                                <tr>
                                                                   <td>
                                                                      <asp:Literal ID="ML_0315" runat="server" meta:resourcekey="ML_0315">Contact Information</asp:Literal>
                                                                   </td>                           
                                                                   
                                                                </tr>
                                                                <tr>
                                                                     
                                                                
                                                                    
                                                                    
                                                                    <td>
                                                                    <table>
                                                                       <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0316" runat="server" meta:resourcekey="ML_0316">Home Phone</asp:Literal>
                                                                       
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtHomePhn" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtHomePhn" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator4"></asp:RequiredFieldValidator> 
                                                           
                                                         <%--  <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtHomePhn" ValidationGroup="vgAddrInfo" ValidationExpression="^(\()?(787|939)(\)|-)?([0-9]{3})(-)?([0-9]{4}|[0-9]{4})$" ErrorMessage="<div align='center' class='alert'>Phone invalid</div>" Enabled="True" Display="Dynamic"></asp:RegularExpressionValidator>--%>
                                                           
                                                           
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                        <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0319" runat="server" meta:resourcekey="ML_0319">Mobile Phone</asp:Literal>
                                                                       
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtMobPhn" runat="server"></asp:TextBox>
                                                     <%--  <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtMobPhn" ValidationGroup="vgAddrInfo" ValidationExpression="^(\()?(787|939)(\)|-)?([0-9]{3})(-)?([0-9]{4}|[0-9]{4})$" ErrorMessage="<div align='center' class='alert'>Phone invalid</div>" Enabled="True" Display="Dynamic"></asp:RegularExpressionValidator>--%>
                                                      
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                        <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0321" runat="server" meta:resourcekey="ML_0321">Office Phone</asp:Literal>
                                                                       
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtOffcPhn" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtOffcPhn" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator6"></asp:RequiredFieldValidator> 
                                                           <%-- <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtOffcPhn" ValidationGroup="vgAddrInfo" ValidationExpression="^(\()?(787|939)(\)|-)?([0-9]{3})(-)?([0-9]{4}|[0-9]{4})$" ErrorMessage="<div align='center' class='alert'>Phone invalid</div>" Enabled="True" Display="Dynamic"></asp:RegularExpressionValidator>--%>
                                                           
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                        <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0324" runat="server" meta:resourcekey="ML_0324">Work Email</asp:Literal>
                                                                       
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtWrkEmail" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtWrkEmail" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator7"></asp:RequiredFieldValidator> 
                                                           <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtWrkEmail" ValidationGroup="vgAddrInfo" ValidationExpression="^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$" ErrorMessage="<div align='center' class='alert'>Please enter valid E-mail</div>" Enabled="True" Display="Dynamic" meta:resourcekey="RegularExpressionValidator5"></asp:RegularExpressionValidator> 
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                        <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0328" runat="server" meta:resourcekey="ML_0328">Personal Email</asp:Literal>
                                                                       
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtPersEmail" runat="server"></asp:TextBox>
                         <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="txtPersEmail" ValidationGroup="vgAddrInfo" ValidationExpression="^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$" ErrorMessage="<div align='center' class='alert'>Please enter valid Email</div>" Enabled="True" Display="Dynamic" meta:resourcekey="RegularExpressionValidator6"></asp:RegularExpressionValidator> 
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                    </table>
                                                                    </td>
                                                                    
                                                                </tr>
                                                           </table>
                                                      </td>
                                                      <td>
                                                           <table>
                                                                <tr>
                                                                   <td>
                                                                      <asp:Literal ID="ML_0331" runat="server" meta:resourcekey="ML_0331">Emergency Contact Information</asp:Literal>
                                                                   </td>                           
                                                                   
                                                                </tr>
                                                              <tr>
                                                                     
                                                                
                                                                    
                                                                    
                                                                    <td>
                                                                    <table>
                                                                       <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0332" runat="server" meta:resourcekey="ML_0332">First Name</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                       <asp:TextBox ID="txtEmrgnFrstNam" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtEmrgnFrstNam" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator5"></asp:RequiredFieldValidator> 
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                          <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0335" runat="server" meta:resourcekey="ML_0335">Last Name</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                       <asp:TextBox ID="txtEmrgnLastNam" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtEmrgnLastNam" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator9"></asp:RequiredFieldValidator> 
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                          <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0338" runat="server" meta:resourcekey="ML_0338">Relationship</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                   <asp:DropDownList ID="ddlRelation" runat="server" CssClass="dropdown"></asp:DropDownList>                    
              <asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" ControlToValidate="ddlRelation" Display="Dynamic" InitialValue="0" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>" ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator22"></asp:RequiredFieldValidator> 
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                          <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0341" runat="server" meta:resourcekey="ML_0341">Home Phone</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                       <asp:TextBox ID="txtEmrgnHomPhn" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator23" runat="server" ControlToValidate="txtEmrgnHomPhn" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator23"></asp:RequiredFieldValidator> 
                                                           
                                                          <%-- <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" ControlToValidate="txtEmrgnHomPhn" ValidationGroup="vgAddrInfo" ValidationExpression="^(\()?(787|939)(\)|-)?([0-9]{3})(-)?([0-9]{4}|[0-9]{4})$" ErrorMessage="<div align='center' class='alert'>Phone invalid</div>" Enabled="True" Display="Dynamic"></asp:RegularExpressionValidator>--%>
                                                           
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                          <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0344" runat="server" meta:resourcekey="ML_0344">Work Phone</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                       <asp:TextBox ID="txtEmrgnWrkPhn" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ControlToValidate="txtEmrgnWrkPhn" Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator24"></asp:RequiredFieldValidator> 
                                                           <%-- <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" ControlToValidate="txtEmrgnWrkPhn" ValidationGroup="vgAddrInfo" ValidationExpression="^(\()?(787|939)(\)|-)?([0-9]{3})(-)?([0-9]{4}|[0-9]{4})$" ErrorMessage="<div align='center' class='alert'>Phone Number Invalid</div>" Enabled="True" Display="Dynamic"></asp:RegularExpressionValidator>--%>
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                          <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0347" runat="server" meta:resourcekey="ML_0347">Mobile Phone</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                       <asp:TextBox ID="txtEmrgnMobPhn" runat="server"></asp:TextBox>
                      <%-- <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server" ControlToValidate="txtEmrgnMobPhn" ValidationGroup="vgAddrInfo" ValidationExpression="^(\()?(787|939)(\)|-)?([0-9]{3})(-)?([0-9]{4}|[0-9]{4})$" ErrorMessage="<div align='center' class='alert'>Phone Number Invalid</div>" Enabled="True" Display="Dynamic"></asp:RegularExpressionValidator>--%>
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                          <tr>
                                                                          <td>
                                                                       <asp:Literal ID="ML_0349" runat="server" meta:resourcekey="ML_0349">Email</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                       <asp:TextBox ID="txtEmrgnEmail" runat="server"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" ControlToValidate="txtEmrgnEmail" ValidationGroup="vgAddrInfo" ValidationExpression="^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$" ErrorMessage="<div align='center' class='alert'>E-mail Invalid</div>" Enabled="True" Display="Dynamic"></asp:RegularExpressionValidator>
                                                                    </td>
                                                                       
                                                                       </tr>
                                                                    </table>
                                                                    </td>
                                                                    
                                                                </tr>
                                                           </table>
                                                      </td>
                                                  </tr>
                                              </table>
                                          </td>
                                      </tr>
                                  </table>
                                  
                              </asp:View>
                              
                              <asp:View ID="ViewSchoolInfo" runat="server">
                                  <table>
                                   <tr>
                                                      <td align="left">
                                                          <asp:Literal ID="ML_0353" runat="server" meta:resourcekey="ML_0353">Profile</asp:Literal>
                                                      </td>
                                                  </tr>
                                      <tr>
                                          <td>
                                              <table>
                                                 
                                                  <tr>
                                                      <td>
                                                        <asp:Literal ID="ML_0354" runat="server" meta:resourcekey="ML_0354">Job Category</asp:Literal>
                                                      </td>
                                                      <td>
                                                          <asp:DropDownList ID="ddlStaffTyp" runat="server" CssClass="dropdown">
                                                          </asp:DropDownList>
                                                          
                                                           <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="ddlStaffTyp" Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Please select one option</div>" InitialValue="0" ValidationGroup="vgSchlInfo" meta:resourcekey="RequiredFieldValidator15"></asp:RequiredFieldValidator>
                                                          
                                                      </td>
                                                       <td>
                                                          <asp:Literal ID="ML_0357" runat="server" meta:resourcekey="ML_0357">Job title</asp:Literal>
                                                      </td>
                                                      <td>
                                                         <asp:TextBox ID="txtJobTitle" runat="server"></asp:TextBox>
                                                      </td>
                                                     
                                                  </tr>
                                                  <tr>
                                                   <td>
                                                          <asp:Literal ID="ML_0359" runat="server" meta:resourcekey="ML_0359">Joining Date</asp:Literal>
                                                      </td>
                                                      <td>
                                                          <asp:TextBox ID="txtDateJoin" runat="server"></asp:TextBox>
                                                          <asp:ImageButton ID="calimg2" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                                              CausesValidation="false" AlternateText="Select Joining Date" runat="server" meta:resourcekey="calimg2"/><cc1:CalendarExtender
                                                                  ID="CalJoinDate" runat="server" PopupButtonID="calimg2" TargetControlID="txtDateJoin">
                                                              </cc1:CalendarExtender>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="txtDateJoin" Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"  ValidationGroup="vgSchlInfo" meta:resourcekey="RequiredFieldValidator18"></asp:RequiredFieldValidator>
                                                      </td>
                                                      <td>
                                                          <asp:Literal ID="ML_0364" runat="server" meta:resourcekey="ML_0364">End Date</asp:Literal>
                                                      </td>
                                                      <td>
                                                          <asp:TextBox ID="txtleftdate" runat="server"></asp:TextBox>
                                                          <asp:ImageButton ID="calImg3" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                                              CausesValidation="false" AlternateText="Select Left Date" runat="server" meta:resourcekey="calImg3"/><cc1:CalendarExtender
                                                                  ID="CalExtLeftDate" runat="server" PopupButtonID="calImg3" TargetControlID="txtleftdate">
                                                              </cc1:CalendarExtender>
                                                      </td>
                                                   
                                                  </tr>
                                                  <tr>
                                                  <td><asp:Literal ID="ML_0368" runat="server" meta:resourcekey="ML_0368">Home School</asp:Literal></td>
                                                 
                                                      <td>
                                                        <asp:DropDownList ID="ddlSchools" runat="server" CssClass="dropdown"></asp:DropDownList>
                                           <asp:RequiredFieldValidator ID="RequiredFieldValidator29" runat="server" ControlToValidate="ddlSchools" Display="Dynamic" InitialValue="0" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>"  ValidationGroup="vgSchlInfo" meta:resourcekey="RequiredFieldValidator29"></asp:RequiredFieldValidator></td>
                                                  </tr>
                                              </table>
                                          </td>
                                      </tr>
                                       <tr>
                                                      <td align="left">
                                                          <asp:Literal ID="ML_0371" runat="server" meta:resourcekey="ML_0371">openSIS access</asp:Literal>
                                                      </td>
                                                  </tr>
                                        
                                        <tr><td>
                                        
                                        <table>
                                        
                                             <%-- opensis access table--%>
                                             <tr>
                                                      <td>
                                                          <asp:Literal ID="ML_0372" runat="server" meta:resourcekey="ML_0372">openSIS access</asp:Literal>

                                                      </td>
                                                      <td align="left" >
                                                          <asp:RadioButtonList ID="rbtnOpenAccess" runat="server" 
                                                              RepeatDirection="Horizontal" 
                                                              onselectedindexchanged="rbtnOpenAccess_SelectedIndexChanged" AutoPostBack="true">
                                                          <asp:ListItem OnClick="RadioButtonFunc(this);" Value="Y" meta:resourcekey="ML_0374">Yes</asp:ListItem>
                                                          <asp:ListItem OnClick="RadioButtonFunc(this);" Value="N" meta:resourcekey="ML_0375">No</asp:ListItem>
                                                          </asp:RadioButtonList>
                                                           <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="rbtnOpenAccess" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Please select one option</div>" ValidationGroup="vgSchlInfo" meta:resourcekey="RequiredFieldValidator8"></asp:RequiredFieldValidator> 
                                                        
                                                         
                                                          
                                                      </td>
                                                       
                                                      
                                                  </tr> 
                                                  <tr><td>
                                              <%--<asp:Panel ID="pnlOpenAcces" runat="server" Visible="false">--%>     <div id="divOpenAcces" ><table>
                                                   
                                                  <tr>
                                      
                                          <td>
                                              <table>
                                                  
                                                  
                                                   <tr>
                                                 
                                                      <td>
                                                          <asp:Literal ID="ML_0377" runat="server" meta:resourcekey="ML_0377">School Access</asp:Literal>

                                                      </td>
                                                      <td>
                                                        
                                                   <asp:CheckBoxList ID="chkschools" runat="server" RepeatColumns="3" RepeatDirection="Horizontal" ></asp:CheckBoxList>
                                                   <asp:CustomValidator ID="cvlChkSchl" runat="server"  ValidationGroup="vgSchlInfo" ErrorMessage="<div align='center' class='alert'>Please Select atleast one School</div>"  ClientValidationFunction="ValidateSchlCheckboxlist" Enabled="false" meta:resourcekey="cvlChkSchl"></asp:CustomValidator>
                             
                                                      
                                                      </td>
                                                      
                                                      
                                                  </tr>
                                                  <tr>
                                                 <td>
                                                          <asp:Literal ID="ML_0380" runat="server" meta:resourcekey="ML_0380">Staff UserName</asp:Literal>
                                                      </td>
                                                      <td>
                                                          <asp:TextBox ID="txtStaUsrnam" runat="server"></asp:TextBox>
                                                          <asp:RequiredFieldValidator ID="rfvUsernam" runat="server" ControlToValidate="txtStaUsrnam"
                                                              Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                              ValidationGroup="vgSchlInfo" Enabled="false" meta:resourcekey="rfvUsernam"></asp:RequiredFieldValidator>
                                                      </td>
                                                      <td>
                                                          <asp:Literal ID="ML_0383" runat="server" meta:resourcekey="ML_0383">Staff Password</asp:Literal>
                                                      </td>
                                                      <td>
                                                          <asp:TextBox ID="txtStaPass" runat="server" TextMode="Password"></asp:TextBox>
                                                          <asp:RequiredFieldValidator ID="rfvPass" runat="server" ControlToValidate="txtStaPass"
                                                              Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                              ValidationGroup="vgSchlInfo" Enabled="false" meta:resourcekey="rfvPass"></asp:RequiredFieldValidator>
                                                      </td>
                                                       
                                                     
                                                  </tr>
                                                   <tr>
                                                 <td>
                                                          <asp:Literal ID="ML_0386" runat="server" meta:resourcekey="ML_0386">Secret Question</asp:Literal> 
                                                      </td>
                                                      <td>
                                                          <%--<asp:TextBox ID="txtSecQues" runat="server"></asp:TextBox>--%>
                           <asp:DropDownList ID="ddlsecrQues" runat="server"></asp:DropDownList>                                   <asp:RequiredFieldValidator ID="rfvSecretQues" runat="server" ControlToValidate="ddlsecrQues"
                                                              Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Please select one option</div>" InitialValue="0"
                                                              ValidationGroup="vgSchlInfo" Enabled="false" meta:resourcekey="rfvSecretQues"></asp:RequiredFieldValidator>
                                                      </td>
                                                      <td>
                                                          <asp:Literal ID="ML_0389" runat="server" meta:resourcekey="ML_0389">Secret Answer</asp:Literal> 
                                                      </td>
                                                      <td>
                                                          <asp:TextBox ID="txtSecrAnsr" runat="server" ></asp:TextBox>
                                                          <asp:RequiredFieldValidator ID="rfvSecrAnsr" runat="server" ControlToValidate="txtSecrAnsr"
                                                              Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                              ValidationGroup="vgSchlInfo" Enabled="false" meta:resourcekey="rfvSecrAnsr"></asp:RequiredFieldValidator>
                                                      </td>
                                                       
                                                     
                                                  </tr>
                                                 
                                              </table>
                                          </td>
                                      </tr>
                                      <tr>
                                          <td>
                                              <table>
                                                  
                                                  <tr>
                                                      <td >
                                                      <asp:Literal ID="ML_0392" runat="server" meta:resourcekey="ML_0392">Library Access</asp:Literal>
                                                       </td>
                                                       <td align="left">  
                                                     <asp:RadioButtonList ID="rbtnLibAcc" runat="server" RepeatDirection="Horizontal" onselectedindexchanged="rbtnLibAcc_SelectedIndexChanged" AutoPostBack="true">
                                                       <asp:ListItem OnClick="RadioButtonFunclib(this);" Value="Y" meta:resourcekey="ML_0394">Yes</asp:ListItem>
                                                       <asp:ListItem OnClick="RadioButtonFunclib(this);" Value="N" meta:resourcekey="ML_0395">No</asp:ListItem>
                                                      </asp:RadioButtonList>
                                                     
                                                      <asp:RequiredFieldValidator ID="rfvLibAcces" runat="server" ControlToValidate="rbtnLibAcc" Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Please select one option</div>" ValidationGroup="vgSchlInfo" Enabled="false" meta:resourcekey="rfvLibAcces"></asp:RequiredFieldValidator> 
                                                    
                                                      
                                                      
                                                      </td>
                                                  </tr>
                                                  
                                                  <tr><td><%--<asp:Panel ID="pnlLib" runat="server" >--%>
                                                  
                                                  <div id="divlib" >
                                                 
                                                  <table>
                                                  
                                                  
                                                  
                                                   <tr>
                                                    <td><asp:Literal ID="ML_0397" runat="server" meta:resourcekey="ML_0397">Library Card Number</asp:Literal></td>
                                                    <td> <asp:TextBox ID="txtLibCrdNo" runat="server"  ReadOnly="true"></asp:TextBox>
         <asp:RequiredFieldValidator ID="rfvCardNo" runat="server" ControlToValidate="txtLibCrdNo"
                                                              Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                              ValidationGroup="vgSchlInfo" Enabled="false" meta:resourcekey="rfvCardNo"></asp:RequiredFieldValidator>
        
         </td>
         
          <td><asp:Literal ID="ML_0400" runat="server" meta:resourcekey="ML_0400">Library Classification</asp:Literal></td>
                                                    <td> <asp:DropDownList ID="ddlLibCLass" runat="server" CssClass="dropdown"></asp:DropDownList>
         <asp:RequiredFieldValidator ID="rfvLibCLas" runat="server" ControlToValidate="ddlLibCLass"
                                                              Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>"
                                                              ValidationGroup="vgSchlInfo" InitialValue="0" Enabled="false" meta:resourcekey="rfvLibCLas"></asp:RequiredFieldValidator>
        
         </td>
         
         
                                                  </tr>
                                                  <tr>
                                                    <td>
                                                    <asp:Literal ID="ML_0403" runat="server" meta:resourcekey="ML_0403">Status</asp:Literal>
                                                       
                                                    </td>
                                                    <td>
                                                     <asp:DropDownList ID="ddlStatus" runat="server" CssClass="dropdown"></asp:DropDownList> <asp:RequiredFieldValidator ID="rfvStatus" runat="server" ControlToValidate="ddlStatus"
                                                              Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>"
                                                              ValidationGroup="vgSchlInfo" InitialValue="0" Enabled="false" meta:resourcekey="rfvStatus"></asp:RequiredFieldValidator>
                                                      
                                                    </td>
                                                  
                                                  </tr>
                                                  
                                                  
                                                  
                                                  
                                                  </table>
                                                  
                                                  </div>
                                                <%-- </asp:Panel>--%> </td></tr>
                                                 
                                              </table>
                                          </td>
                                      </tr>
                                      
                                    
                                                  
                                                  </table></div> <%-- </asp:Panel>--%>
                                                  </td></tr>
                                            <%-- opensis access table--%>
                                         
                                        </table>
                                        
                                        </td></tr>
                                        
                                                 
                                                  
                                      
                                  </table>
                              </asp:View>
                          
                          <asp:View ID="ViewCertificate" runat="server">
                          <table>
                          <tr>
                         
                          <td align="right">
                          <asp:ImageButton ID="ibtnAddNew" runat="server" ImageUrl="~/App_Themes/main/images/add.png" />
                          </td>
                          <td valign="top">
                                                <img src="../App_Themes/main/images/icon_separator.png" />
                                            </td>
                                            <td valign="top">
                                                <asp:ImageButton ID="ibtnEditcert" runat="server" ImageUrl="~/App_Themes/main/images/edit.png"
                                                    CausesValidation="false" OnClick="ibtnEditcert_Click"/>
                                            </td>
                           </tr>
                           
                           
                           <tr>
                          <td>
                            <asp:GridView ID="gvCertficates" runat="server" AutoGenerateColumns="false" OnRowDataBound="gvCertficates_RowDataBound" Width="100%" ShowHeader="false" BorderWidth="0">
                                                                                                                                    <Columns>
                                                                                                                                        <asp:TemplateField>
                                                                                                                                            <ItemTemplate>
                                          <asp:HiddenField ID="hdnedit" runat="server" />                                                 <asp:HiddenField ID="hdnstafffid" runat="server" Value='<%#Eval("stf_id") %>' />
                                                                                                               <asp:HiddenField ID="hdncertid" runat="server" Value='<%#Eval("stf_cert_id") %>' />
                                                                                                                                                <table width="100%">
                                                                                                                                                    <tr>
                                                                                                                                                        <td valign="top" colspan="6">
                                                                                                                                                        <asp:CheckBox ID="chk" runat="server" />    <asp:Label runat="server" ID="lblCertNameHeader" Text='<%#Eval("stf_cert_nm")%>'></asp:Label> <asp:Label runat="server" ID="lblNotAdded" Text="No Certificate Added" Visible="false"></asp:Label>
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                    <tr>
                                                                                                                                                        <td valign="top" width="20%">
                                                                                                                                                            <asp:Literal ID="ML_0417" runat="server" meta:resourcekey="ML_0417">Certification Name</asp:Literal>
                                                                                                                                                        </td>
                                         <td valign="top">:</td>                                                                                                               <td valign="top" width="30%">
                                                                                                                                                            <asp:Label runat="server" ID="lblCertName" Text='<%#Eval("stf_cert_nm")%>'></asp:Label>
                                                                                                                                                        </td>
                                                                                                                                                        <td valign="top" width="20%">
                                                                                                                                                            <asp:Literal ID="ML_0420" runat="server" meta:resourcekey="ML_0420">Certificate Short Name</asp:Literal>
                                                                                                                                                        </td>
                                       <td valign="top">:</td>                                                                                                                   <td valign="top" width="30%">
                                                                                                                                                            <asp:Label runat="server" ID="lblCertShortName" Text='<%#Eval("stf_cert_short_nm")%>'></asp:Label>
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                    <tr>
                                                                                                                                                        <td valign="top">
                                                                                                                                                            <asp:Literal ID="ML_0423" runat="server" meta:resourcekey="ML_0423">Certification Code</asp:Literal>
                                                                                                                                                        </td>
                                        <td valign="top">:</td>                                                                                                                  <td valign="top">
                                                                                                                                                            <asp:Label runat="server" ID="lblCertCode" Text='<%#Eval("stf_cert_cd")%>'></asp:Label>
                                                                                                                                                        </td>
                                                                                                                                                        <td valign="top">
                                                                                                                                                            <asp:Literal ID="ML_0426" runat="server" meta:resourcekey="ML_0426">Certificate Date</asp:Literal>
                                                                                                                                                        </td>
                                         <td valign="top">:</td>                                                                                                                 <td valign="top">
                                                                                                                                                            <asp:Label runat="server" ID="lblCertDate" Text='<%#Eval("stf_cert_dt") %>'></asp:Label>
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                    <tr>
                                                                                                                                                        <td valign="top">
                                                                                                                                                            <asp:Literal ID="ML_0429" runat="server" meta:resourcekey="ML_0429">Certification Expiry/Expired Date</asp:Literal>
                                                                                                                                                        </td>
                                         <td valign="top">:</td>                                                                                                                 <td valign="top">
                                                                                                                                                            <asp:Label runat="server" ID="lblCertExpDate" Text='<%#Eval("stf_cert_exp_dt") %>'></asp:Label>
                                                                                                                                                        </td>
                                                                                                                                                        <td valign="top">
                                                                                                                                                            <asp:Literal ID="ML_0432" runat="server" meta:resourcekey="ML_0432">Primary Certification</asp:Literal>
                                                                                                                                                        </td>
                                        <td valign="top">:</td>                                                                                                                  <td valign="top">
                                         <asp:HiddenField ID="hdnPrimcert" runat="server" Value='<%#Eval("stf_pri_cert_ind")%>'/>                                                                                                                   <asp:Label runat="server" ID="lblPrimryCert" Text='<%#Eval("stf_pri_cert_ind")%>'></asp:Label>
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                    <tr>
                                                                                                                                                        <td valign="top">
                                                                                                                                                            <asp:Literal ID="ML_0436" runat="server" meta:resourcekey="ML_0436">Cerification Description</asp:Literal>
                                                                                                                                                        </td>
                                         <td valign="top">:</td>                                                                                                                 <td valign="top">
                                                                                                                                                            <asp:Label runat="server" ID="lblCertDesc" Text='<%#Eval("stf_cert_desc")%>'></asp:Label>
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                </table>
                                                                                                                                            </ItemTemplate>
                                                                                                                                        </asp:TemplateField>
                                                                                                                                    </Columns>
                                                                                                                                </asp:GridView>
                          
                          </td>                         
                          
                         
                          </tr>
                          
                          </table>
                          
                          
                          </asp:View>
                          </asp:MultiView>
                          
                            
                        </td>
                        
                    </tr>
                    
                    
                    <tr><td><table cellpadding="10" cellspacing="0" width="100%">
                <tr>
                    <td colspan="2"><div class="bevel_horline"></div></td>
                </tr>
                <tr>
                    <td align="left">
                        <asp:ImageButton ID="btnPrev" runat="server" ImageUrl="~/App_Themes/main/images/add_student_back.png"
                             OnClick="btnPrev_Click" CausesValidation="false" Visible="false"/>
                    </td>
                    <td align="right">
                        <asp:ImageButton ID="btnNext" runat="server" ImageUrl="~/App_Themes/main/images/add_student_next.png"
                            OnClick="btnNext_Click" ValidationGroup="vgDemoInfo"/>
                        <asp:Button ID="btnUpdate" runat="server" Visible="false" CssClass="save_button"
                            OnClick="btnUpdate_Click" meta:resourcekey="btnUpdate"/>
                    </td>
                </tr>
                
                
                
            </table></td></tr>
                    
                </table>
                

        </td>
         
      </tr>    
      
   </table>
   </div>
   <div class="clear_small"></div>
   
   <asp:Panel ID="panelAddCert" runat="server" style="display:none;" CssClass="ModalPopup" Width="500" Height="256">
            <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">&nbsp;</td>
                        <td class="modal_header_bg" valign="top">
                            <div class="modal_header"><asp:Literal ID="ML_0035" runat="server" meta:resourcekey="ML_0035"  Text="Add Certification"></asp:Literal></div>
                        </td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">&nbsp;</td>
                        <td class="modal_bg">
           
            <div style="overflow:auto; overflow-x:hidden; width:390px; height:150px;">            
            <table align="left" cellpadding="4" cellspacing="0">
                
                 <tr>
                    <td>
                        <asp:Literal ID="ML_0251" runat="server" meta:resourcekey="ML_0251">Certificate Full Name</asp:Literal>
                    </td>
                    <td class="colon">:</td>
                    <td>
                     <asp:TextBox ID="txtCertName" runat="server"></asp:TextBox>
                       <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ControlToValidate="txtCertName" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="valgrpCert" meta:resourcekey="RequiredFieldValidator20"></asp:RequiredFieldValidator> 
                    </td>
                </tr>
               
                 <tr>
                    <td>
                        <asp:Literal ID="ML_0446" runat="server" meta:resourcekey="ML_0446">Certificate Short Name</asp:Literal>
                    </td>
                    <td class="colon">:</td>
                    <td>
                     <asp:TextBox ID="txtCertShrtName" runat="server"></asp:TextBox>
                       
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Literal ID="ML_0449" runat="server" meta:resourcekey="ML_0449">Certification Code</asp:Literal>
                    </td>
                    <td class="colon">:</td>
                    <td>
                     <asp:TextBox ID="txtCertCode" runat="server" MaxLength="5"></asp:TextBox>
                       
                    </td>
                </tr>
                <tr>
                    <td align="left">
                       <asp:Literal ID="ML_0452" runat="server" meta:resourcekey="ML_0452">Certificate Date</asp:Literal>
                            
                    </td>
                    <td class="colon">:</td>
                    <td align="left">
                    <asp:TextBox ID="txtCertDate" runat="server"></asp:TextBox>
                      <asp:ImageButton ID="imgCal5" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Certificate Date" runat="server" meta:resourcekey="imgCal5"/>
  
                                   <cc1:CalendarExtender ID="calExtCertDate" runat="server" PopupButtonID="imgCal5" TargetControlID="txtCertDate"  ></cc1:CalendarExtender>
                                   
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="txtCertDate" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="valgrpCert" meta:resourcekey="RequiredFieldValidator19"></asp:RequiredFieldValidator> 
                    </td>
                </tr>
                 <tr>
                    <td align="left">
                        <asp:Literal ID="ML_0458" runat="server" meta:resourcekey="ML_0458">Certification Expiry/Expired Date</asp:Literal>
                    </td>
                    <td class="colon">:</td>
                    <td align="left">
                       <asp:TextBox ID="txtCertExpDat" runat="server"></asp:TextBox>
                       <asp:ImageButton ID="imgCal6" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Certificate expiry Date" runat="server" meta:resourcekey="imgCal6"/>
  
                                   <cc1:CalendarExtender ID="CalExtCertExpDt" runat="server" PopupButtonID="imgCal6" TargetControlID="txtCertExpDat"  ></cc1:CalendarExtender>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <asp:Literal ID="ML_0463" runat="server" meta:resourcekey="ML_0463">Primary Certification</asp:Literal>
                    </td>
                    <td class="colon">:</td>
                    <td>
                    <asp:RadioButtonList runat="server" ID="rbtnPrimrCert" RepeatDirection="Horizontal"><asp:ListItem Value="Y" meta:resourcekey="ML_0466">Yes</asp:ListItem>
                                <asp:ListItem Value="N" meta:resourcekey="ML_0467">No</asp:ListItem>
                                </asp:RadioButtonList> 
                       
                    </td>
                </tr>
                 <tr>
                    <td>
                        <asp:Literal ID="ML_0468" runat="server" meta:resourcekey="ML_0468">Certification Description</asp:Literal>
                    </td>
                    <td class="colon">:</td>
                    <td>
                 <asp:TextBox ID="txtCertDesc" runat="server" TextMode="MultiLine"></asp:TextBox>
                       
                    </td>
                </tr>
                
            </table></div>
            
            <div class="separator_hor"></div>
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td align="right">
                       <asp:Button ID="btnSaveCert" runat="server" CssClass="modalbtn_active" Text="Save" onclick="btnSaveCert_Click" ValidationGroup="valgrpCert" meta:resourcekey="btnSaveCert"/>
                                  <asp:Button ID="btnCancel" runat="server" CssClass="modalbtn_active" Text="Cancel" CausesValidation="false" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender4')" meta:resourcekey="btnCancel"/>

                        </td>
                    </tr>
                </table>
                </td></tr>
            </table>
            
        </asp:Panel>
      
            
          
          <cc1:ModalPopupExtender ID="ModalPopupExtender4" runat="server" BackgroundCssClass="Inactive"
            TargetControlID="ibtnAddNew" PopupControlID="panelAddCert" Enabled="true" />
            
            
            
            <asp:Panel ID="pnlEditCert" runat="server" style="display:none;" CssClass="ModalPopup" Width="500" Height="256">
            <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">&nbsp;</td>
                        <td class="modal_header_bg" valign="top">
                            <div class="modal_header"><asp:Literal ID="Literal1" runat="server" meta:resourcekey="ML_0035"  Text="Edit Certification"></asp:Literal></div>
                        </td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">&nbsp;</td>
                        <td class="modal_bg">
           
            <div style="overflow:auto; overflow-x:hidden; width:390px; height:150px;">            
            <table align="left" cellpadding="4" cellspacing="0">
                
                 <tr>
                    <td>
                        <asp:Literal ID="ML_0475" runat="server" meta:resourcekey="ML_0475">Certificate Full Name</asp:Literal>
                    </td>
                    <td class="colon">:</td>
                    <td>
                     <asp:TextBox ID="txtCertFnameEdit" runat="server"></asp:TextBox>
                       <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="txtCertFnameEdit" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="valgrpCertEdit" meta:resourcekey="RequiredFieldValidator11"></asp:RequiredFieldValidator> 
                    </td>
                </tr>
               
                 <tr>
                    <td>
                        <asp:Literal ID="ML_0479" runat="server" meta:resourcekey="ML_0479">Certificate Short Name</asp:Literal>
                    </td>
                    <td class="colon">:</td>
                    <td>
                     <asp:TextBox ID="txtCerShrtNamEdit" runat="server"></asp:TextBox>
                       
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Literal ID="ML_0482" runat="server" meta:resourcekey="ML_0482">Certification Code</asp:Literal>
                    </td>
                    <td class="colon">:</td>
                    <td>
                     <asp:TextBox ID="txtCertCodeEdit" runat="server" MaxLength="5"></asp:TextBox>
                       
                    </td>
                </tr>
                <tr>
                    <td align="left">
                       <asp:Literal ID="ML_0485" runat="server" meta:resourcekey="ML_0485">Certificate Date</asp:Literal>
                            
                    </td>
                    <td class="colon">:</td>
                    <td align="left">
                    <asp:TextBox ID="txtCertDateEdit" runat="server"></asp:TextBox>
                      <asp:ImageButton ID="ImageButton1" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Certificate Date" runat="server" meta:resourcekey="ImageButton1"/>
  
                                   <cc1:CalendarExtender ID="CalExCertDateEdit" runat="server" PopupButtonID="ImageButton1" TargetControlID="txtCertDateEdit"  ></cc1:CalendarExtender>
                                   
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="txtCertDateEdit" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="valgrpCertEdit" meta:resourcekey="RequiredFieldValidator12"></asp:RequiredFieldValidator> 
                    </td>
                </tr>
                 <tr>
                    <td align="left">
                        <asp:Literal ID="ML_0491" runat="server" meta:resourcekey="ML_0491">Certification Expiry/Expired Date</asp:Literal>
                    </td>
                    <td class="colon">:</td>
                    <td align="left">
                       <asp:TextBox ID="txtCertExpDateEdit" runat="server"></asp:TextBox>
                       <asp:ImageButton ID="ImageButton2" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Certificate expiry Date" runat="server" meta:resourcekey="ImageButton2"/>
  
                                   <cc1:CalendarExtender ID="CalExCertExpDateEdit" runat="server" PopupButtonID="ImageButton2" TargetControlID="txtCertExpDateEdit"  ></cc1:CalendarExtender>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <asp:Literal ID="ML_0496" runat="server" meta:resourcekey="ML_0496">Primary Certification</asp:Literal>
                    </td>
                    <td class="colon">:</td>
                    <td>
                    <asp:RadioButtonList runat="server" ID="rbtnPrimCertEdit" RepeatDirection="Horizontal"><asp:ListItem Value="Y" meta:resourcekey="ML_0499">Yes</asp:ListItem>
                                <asp:ListItem Value="N" meta:resourcekey="ML_0500">No</asp:ListItem>
                                </asp:RadioButtonList> 
                       
                    </td>
                </tr>
                 <tr>
                    <td>
                        <asp:Literal ID="ML_0501" runat="server" meta:resourcekey="ML_0501">Certification Description</asp:Literal>
                    </td>
                    <td class="colon">:</td>
                    <td>
                 <asp:TextBox ID="txtCertDescEdit" runat="server" TextMode="MultiLine"></asp:TextBox>
                       
                    </td>
                </tr>
                
            </table></div>
            
            <div class="separator_hor"></div>
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td align="right">
                       <asp:Button ID="btnUpdateCert" runat="server" CssClass="modalbtn_active" Text="Update" onclick="btnUpdateCert_Click" ValidationGroup="valgrpCertEdit" meta:resourcekey="btnUpdateCert"/>
                                  <asp:Button ID="btnCanel" runat="server" CssClass="modalbtn_active" Text="Cancel" CausesValidation="false" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender1')" meta:resourcekey="btnCanel"/>

                        </td>
                    </tr>
                </table>
                </td></tr>
            </table>
            
        </asp:Panel>
      
            
          
          <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BackgroundCssClass="Inactive"
            TargetControlID="hdn" PopupControlID="pnlEditCert" Enabled="true" />
            
            
            
            
            
    
    <asp:HiddenField ID="hdn" runat="server" />
        
            
<asp:HiddenField ID="hdnCat" runat="server" />
<asp:HiddenField ID="hdnPasswrd" runat="server" />
<asp:HiddenField ID="hdnBlankgrid" runat="server" />
 <asp:HiddenField ID="hdnStfId" runat="server" />
 <asp:HiddenField ID="hdncertificateId" runat="server" />
 <asp:HiddenField ID="hdnPrimaryCert" runat="server" />
 <asp:HiddenField ID="hdndisdesc" runat="server" />

<script type="text/javascript" language ="javascript" >
    function CheckSameAddress() {

       

        var BState = document.getElementById("ctl00_ContentPlaceHolder1_ddlSecnState");

        if (document.getElementById("ctl00_ContentPlaceHolder1_chkSame").checked == true) {
            var Text1 = document.aspnetForm.ctl00_ContentPlaceHolder1_txtAdd1.value;
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnAdd1.value = Text1;

                var Text2 = document.aspnetForm.ctl00_ContentPlaceHolder1_txtAdd2.value;
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnAdd2.value = Text2;

                var Text3 = document.aspnetForm.ctl00_ContentPlaceHolder1_txtCity.value;
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnCity.value = Text3;

                var Text4 = document.aspnetForm.ctl00_ContentPlaceHolder1_txtZip.value;
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnZip.value = Text4;

               
             
                var ani = document.getElementById("ctl00_ContentPlaceHolder1_ddlState");
                
                for (var selIndex = ani.length - 1; selIndex >= 0; selIndex--) {
                    if (ani.options[selIndex].selected) {
                        var value = ani.options[selIndex].value;

                        var i = 0;
                        var end = BState.options.length;

                        while (i < end) {

                            if (BState.options[i].value == value) {
                                BState.options[i].selected = true;
                                BState.selectedIndex = i;
                                return;
                            }
                            i++;
                        }
                    }
                }

             
            }
            else {
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnAdd1.value = "";
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnAdd2.value = "";
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnCity.value = "";
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnZip.value = "";
                BState.selectedIndex = 0;
                  
            }
        }



        function RadioButtonFunc(control) {
            if (control.value == "Y") {
               
              
                document.getElementById('divOpenAcces').style.display = "block";
            }
            else if (control.value == "N") {

            document.getElementById('divOpenAcces').style.display = "none";
            }
        }
        function RadioButtonFunclib(control) {
            if (control.value == "Y") {

                document.getElementById('divlib').style.display = "block";
            }
            else if (control.value == "N") {

            document.getElementById('divlib').style.display = "none";
            }
        }

        function RadioButtonFuncdisability(control, div) {
            if (control.value == "Y") {

               
                document.getElementById('divDisability').style.display = "block";
              
            }
            else if (control.value == "N") {

            document.getElementById('divDisability').style.display = "none";
          
            }
        }

        function ShowHyperlink() {

            var hyperlink = document.getElementById("ctl00_ContentPlaceHolder1_divLabel");

            hyperlink.style.display = 'block';
        }

        function HideHyperlink() {

            var hyperlink = document.getElementById("ctl00_ContentPlaceHolder1_divLabel");
            hyperlink.style.display = 'none';
        }

        
        </script>

</asp:Content>

